﻿using System;
using System.Collections.Generic;

namespace Campus.Main.Basic.InsertValues
{
    public partial class Ortalama : Default
    {
        public Ortalama():base()
        {
            InitializeComponent();
            button2.Click += button2_Click;
        }
        public Ortalama(List<string> aList): base(aList)
        {
            InitializeComponent();
            id = aList[0];
            textBox1.Text = aList[1];
            textBox2.Text = aList[2];
            textBox3.Text = aList[3];
            button2.Click += button2_Click;
        }


        protected override void button1_Click(object sender, EventArgs e)
        {
            aToDb.UpdateTableOrtalama(textBox1.Text,textBox2.Text,textBox3.Text,id);
            Close();
        }
    }
}
